package com.lyd.collections.stream;

import java.util.stream.Stream;

/**
 * @Author:lyd
 **/
public class StreamDemo5 {
    public static void main(String[] args) {
        //一推零散数据   public static<T> Stream<T> of(T... values)   Stream中的静态方法
        Stream<String> str = Stream.of("aa", "bb", "cc", "dd");
        str.forEach(s-> System.out.println(s));
    }
}
